package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkPrePayDealTab;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkPrePayDealTabVo;
import com.ruoyi.logistic.mapper.NetworkPrePayDealTabMapper;
import com.ruoyi.logistic.service.NetworkPrePayDealTabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NetworkPrePayDealTabServiceImpl implements NetworkPrePayDealTabService {
    @Autowired
    private NetworkPrePayDealTabMapper networkPrePayDealTabMapper;
    @Override
    public List<NetworkPrePayDealTab> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkPrePayDealTabMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkPrePayDealTab sheet) {
        return networkPrePayDealTabMapper.insert(sheet);
    }

    @Override
    public Boolean update(NetworkPrePayDealTab sheet) {
        return networkPrePayDealTabMapper.update(sheet);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkPrePayDealTabMapper.deleteById(id);
    }

    @Override
    public NetworkPrePayDealTab findById(Integer id) {
        return networkPrePayDealTabMapper.findById(id);
    }

    @Override
    public List<NetworkPrePayDealTab> search(NetworkPrePayDealTabVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return networkPrePayDealTabMapper.search(vo);
    }
}
